#ifndef __PWM_H
#define __PWM_H

#define PWM_GPIO_Port                   GPIOA
#define PWM_GPIO_Pin                    GPIO_Pin_8
#define PWM_TIMx                        TIM1
#define PWM_TIMx_CLK                    RCC_APB2Periph_TIM1
#define PWM_GPIO_CLK                    RCC_APB2Periph_GPIOA
#define PWM_ARR                         100
#define PWM_PSC                         72

void PWM_Init(void);
void PWM_SetCompare(uint16_t Compare);
void PWM_Open(void);
void PWM_Stop(void);

#endif
